package net.ib.mtalk.network.task;

import android.content.Context;
import android.os.Handler;
import net.ib.mntalk.protocol.Common.UUIDMsg;
import net.ib.mntalk.protocol.Session.RemoveBlockUsersReq;
import net.ib.mtalk.network.MethodId.Session;
import net.ib.mtalk.network.TcpEnvelope;
import net.ib.mtalk.util.GpbSupport;
import net.ib.mtalk.util.NotifyingAsyncQueryHandler;

public class RemoveBlockUserTask extends AsyncNetTask {

	public RemoveBlockUserTask(Context _context, Handler _uiHandler) {
		super(_context, _uiHandler);
		mContext = _context;
		mUiHandler = _uiHandler;
	}

	@Override
	protected TcpEnvelope onPreExecute() {
		RemoveBlockUsersReq removeBlockUsersReq = new RemoveBlockUsersReq();
//		removeBlockUsersReq.setUserUuid(GpbSupport.makeUuidMsg(333, 444));
		
		int index = 0;
		removeBlockUsersReq.setBlockUserUuid(index, GpbSupport.makeUuidMsg(444, 555));

		TcpEnvelope rev = new TcpEnvelope.Builder()
			.setType(TcpEnvelope.REQUEST)
			.setMessage(removeBlockUsersReq)
			.setMethodId(Session.Block.RemoveBlockUsers)
			.build();
		return rev;
	}

	@Override
	protected void onPostExecute(int resultCode, Object requestObj,
			Object resultObj) {
		// TODO Auto-generated method stub

	}

}
